{template header}
<form method="post" action="" onsubmit="return verifyFrom();">
            <div style="text-align: center;">
                    <div style="padding-top: 20px; width: 100%; border: #eeeeee 1px solid; padding-top: 20px; padding-bottom: 20px;">
                        <table cellspacing="0" cellpadding="0" border="0" id="idTable" class="sortcla_1" style="font-size: 14px;">
                            <tbody>
                                <tr style="">
                                    <td style="text-align: right;">
                                    </td>
                                    <td style="text-align: left;">
                                        &nbsp;&nbsp;&nbsp;&nbsp;{GODHOUSE_SITENAME}
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">公司名称：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">*</span>
                                            <input type="text" name="user[company]" id="company" style="width: 200px;" maxlength="50" class="in_text_cla1" />&nbsp;</div>
                                        <div style="float: left; " id="err_company">
                                            &nbsp;&nbsp;&nbsp;&nbsp;例如：森鸟科技网络有限公司
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        登陆账号：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">*</span>
                                            <input class="in_text_cla1" type="text" name="user[userName]" id="userName" maxlength="30" onpropertychange="ajaxget('site-checkUser.htm?userName='+this.value, 'err_userName', 'err_userName', null, null)" style="width: 200px;" />&nbsp;</div>
                                        <div style="float: left; color: Red;" id="err_userName">
                                            &nbsp;&nbsp;&nbsp;&nbsp;登陆账号唯一验证...
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        登陆密码：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">*</span>
                                            <input type="password" name="user[passwd]" id="passwd" maxlength="20" class="in_text_cla1"
                                                style="width: 200px;" />&nbsp;</div>
                                        <div style="float: left;" id="err_passwd">
                                            &nbsp;&nbsp;&nbsp;&nbsp;认真填写
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        密码确认：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">*</span>
                                            <input type="password" name="passwd2" id="passwd2" maxlength="20" class="in_text_cla1"
                                                style="width: 200px;" />&nbsp;</div>
                                        <div style="float: left" id="err_passwd2">
                                            &nbsp;&nbsp;&nbsp;&nbsp;两次密码输入的必须一致
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        区域：</td>
                                    <td>
                                        <div style="text-align: left;">
                                            <span style="color: Red; padding-right: 5px;">*</span>
						<select name="province" id="province" style="width: 150px;" onchange="ajaxget('site-ajaxCity-'+this.value+'.htm', 'showCity', 'showCity', null, null)">
							<option value="">请选择区域</option>
							<!--{loop $areaList $v}-->
							<option value="{$v[id]}">{$v[name]}</option>
							<!--{/loop}-->
						</select>
						<span id="showCity">
						<select name="user[areaId]" id="city" style="width: 150px;">
							<option value="0"></option>
						</select>
						</span>
						<span style="color:red" id="err_city"></span>
                                        </div>
                                        <div style="text-align: left;">
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        地址：</td>
                                    <td>
                                        <div style="text-align: left;">
                                            <span style="color: Red; padding-right: 5px;">*</span>
                                            <input type="text" name="user[address]" id="address" style="width: 400px;" maxlength="50"
                                                class="in_text_cla1" /></div>
                                        <div style="text-align: left;">
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        邮编：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">&nbsp;</span>
                                            <input type="text" name="user[postCode]" id="postCode" maxlength="6" class="in_text_cla1"
                                                style="width: 200px;" />&nbsp;</div>
                                        <div style="float: left">
                                            &nbsp;&nbsp;&nbsp;&nbsp; 例：100011
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        联系人：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">&nbsp;</span>
                                            <input type="text" name="user[realName]" id="realName" maxlength="10" class="in_text_cla1"
                                                style="width: 200px;" />
                                        </div>
                                        <div style="float: left">
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        Email：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">*</span>
                                            <input type="text" name="user[email]" id="email" maxlength="30" class="in_text_cla1" style="width: 200px;" />&nbsp;
                                        </div>
                                        <div style="float: left; color: Red;" id="err_email">
                                            &nbsp;&nbsp;&nbsp;&nbsp;请您认真填写，我们会发送验证信息。
                                        </div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        手机：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">*</span>
                                            <input type="text" name="user[mobile]" id="mobile" style="width: 200px;" maxlength="20"
                                                class="in_text_cla1" /></div>
					<div style="float: left; color: Red; display:none" id="err_mobile">
					&nbsp;&nbsp;&nbsp;&nbsp;请填写手机号码。
					</div>
                                    </td>
                                </tr>
                                <tr style="height: 40px;">
                                    <td style="text-align: right;">
                                        电话：</td>
                                    <td>
                                        <div style="float: left">
                                            <span style="color: Red; padding-right: 5px;">&nbsp;</span>
                                            <input type="text" name="user[phone]" id="phone" style="width: 200px;" maxlength="20" class="in_text_cla1" />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                    <td>
                                        <div style="text-align: left; padding-left: 12px;">
                                            <input type="submit" id="SubmitSave" name="SubmitSave" value=" 注册 " class="in_button_cla1 f-s-14 f-w-b"
                                                style="color: #349486;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <input type="reset" value=" 重置 " class="in_button_cla1 f-s-14 f-w-b" style="color: #349486;" />
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
            	</div>
        </div>
</form>
<script>
function verifyFrom() {
	var company = $('company');
	if(company.value == '') {
		$('company').focus();
		$('err_company').innerHTML = '<span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;请填写公司名称</span>';
		return false;
	}
	var userName = $('userName');
	if(userName.value == '') {
		$('userName').focus();
		$('err_userName').innerHTML = '<span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;请填写注册帐号 范围a_zA_Z0_9</span>';
		return false;
	}
	var passwd = $('passwd');
	if(passwd.value == '') {
		$('passwd').focus();
		$('err_passwd').innerHTML = '<span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;请填写密码</span>';
		return false;
	}
	var passwd2 = $('passwd2');
	if(passwd2.value == '') {
		$('passwd2').focus();
		$('err_passwd2').innerHTML = '<span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;请填写确认密码</span>';
		return false;
	}
	if(passwd.value != passwd2.value) {
		$('passwd2').focus();
		$('err_passwd2').innerHTML = '<span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;与确认密码不一致</span>';
		return false;
	}
	if(selectedVerif('city')) {
		$('city').focus();
		$('err_city').innerHTML = '&nbsp;&nbsp;&nbsp;&nbsp;请选择地区';
		return false;
	}
	var email = $('email');
	if(email.value == '') {
		$('email').focus();
		$('err_email').innerHTML = '<span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;请输入邮箱</span>';
		return false;
	}
	var mobile = $('mobile');
	if(mobile.value == '') {
		$('mobile').focus();
		$('err_mobile').style.display='';
		return false;
	}
	return true;
}
</script>
{template footer}